import 'package:flutter/material.dart';
import 'package:full_display/common/qxp_style.dart';
import 'package:full_display/unit/asset_utils/asset_utils.dart';
import 'package:full_display/unit/screen/screen_utility.dart';

class ItemButton extends StatelessWidget {
  final String str;
  final String imageStr;
  // double top = 12;

  ItemButton({Key? key, required this.str, required this.imageStr/*, top*/})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      // color: Colors.red,
      width: 32.0.W,
      height: 60.0.H,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Container(
            width: 32.0.W,
            height: 32.0.H,
            child: Image.asset(AssetUtils.getAssetImage(imageStr)),
          ),
          Container(
            margin: EdgeInsets.only(top:10),
            child: Text('$str',style: StandardTextStyle.buttonStyle,),
          )
        ],
      ),
    );
  }
}
